package com.ruoyi.counter.domain;

import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工器具柜档案对象 counter
 *
 * @author 仝帅
 * @date 2021-07-27
 */
public class Counter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID  */
    private Long counterid;

    /** isInsert */
    private int isInsert;

    /** 工器具柜名称 */
    @Excel(name = "工器具柜名称")
    private String countername;

    /** 工器具柜地址 */
    @Excel(name = "工器具柜地址")
    private String addr;

    /** 格子编号 */
    @Excel(name = "格子编号")
    private String idx;

    /** 机构编码 */
    @Excel(name = "机构编码")
    private Long organid;

    public void setOrganidName(String organidName) {
        this.organidName = organidName;
    }

    public String getOrganidName() {
        return organidName;
    }

    /** 机构编码 */
    private String organidName;

    /** 工器具柜状态 */
    @Excel(name = "工器具柜状态")
    private Long status;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String mac;

    /** 部门ID */
    private Long deptId;

    public int getIsInsert() {
        return isInsert;
    }

    public void setIsInsert(int isInsert) {
        this.isInsert = isInsert;
    }


    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    private Long userid;


    public Long getDeptId()
    {
        return deptId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    /** 工器具副柜信息 */
    private List<Countersub> countersubList;

    public void setCounterid(Long counterid)
    {
        this.counterid = counterid;
    }

    public Long getCounterid()
    {
        return counterid;
    }

    public String getCountername()
    {
        return countername;
    }
    public void setAddr(String addr)
    {
        this.addr = addr;
    }

    public String getAddr()
    {
        return addr;
    }
    public void setIdx(String idx)
    {
        this.idx = idx;
    }

    public String getIdx()
    {
        return idx;
    }
    public void setOrganid(Long organid)
    {
        this.organid = organid;
    }

    public Long getOrganid()
    {
        return organid;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }

    public List<Countersub> getCountersubList()
    {
        return countersubList;
    }

    public void setCountersubList(List<Countersub> countersubList)
    {
        this.countersubList = countersubList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("counterid", getCounterid())
            .append("countername", getCountername())
            .append("addr", getAddr())
            .append("idx", getIdx())
            .append("organid", getOrganid())
            .append("status", getStatus())
            .append("mac", getMac())
            .append("countersubList", getCountersubList())
                .append("isInsert",getIsInsert())
            .toString();
    }
}
